Optimal. Leaf size=41 \[ \frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2573, 2561,
2339, 29} \begin {gather*} \frac {\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B n (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 2339
Rule 2561
Rule 2573
Rubi steps
\begin {align*} \int \frac {1}{(a+b x) (c+d x) \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )} \, dx &=\frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 39, normalized size = 0.95 \begin {gather*} \frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{b B c n-a B d n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.36, size = 368, normalized size = 8.98
method | result | size |
risch | \(-\frac {\ln \left (\ln \left (\left (d x +c \right )^{n}\right )-\frac {-i B \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )+i B \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{2}-i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )+i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}+i B \pi \,\mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}-i B \pi \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3}+i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{2}-i B \pi \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{3}+2 B \ln \left (e \right )+2 B \ln \left (\left (b x +a \right )^{n}\right )+2 A}{2 B}\right )}{B n \left (a d -c b \right )}\) | \(368\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.38, size = 46, normalized size = 1.12 \begin {gather*} \frac {\log \left (-\frac {B \log \left ({\left (b x + a\right )}^{n}\right ) - B \log \left ({\left (d x + c\right )}^{n}\right ) + A + B}{B}\right )}{{\left (b c n - a d n\right )} B} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 43, normalized size = 1.05 \begin {gather*} \frac {\log \left (-B n \log \left (b x + a\right ) + B n \log \left (d x + c\right ) - A - B\right )}{{\left (B b c - B a d\right )} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.83, size = 38, normalized size = 0.93 \begin {gather*} \frac {\log \left (B n \log \left (b x + a\right ) - B n \log \left (d x + c\right ) + A + B\right )}{B b c n - B a d n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.66, size = 40, normalized size = 0.98 \begin {gather*} -\frac {\ln \left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\right )}{B\,a\,d\,n-B\,b\,c\,n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________